import request from '@/utils/request'

// 查询交接信息列表
export function listHandover(query) {
  return request({
    url: '/wms/handover/list',
    method: 'get',
    params: query
  })
}

export function listHandoverInfo(query) {
  return request({
    url: '/wms/handover/infoList',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/wms/handover/initBean',
        method: 'post'
    })
}

// 查询交接信息详细
export function getHandover(id) {
  return request({
    url: '/wms/handover/' + id,
    method: 'get'
  })
}

// 新增交接信息
export function addHandover(data) {
  return request({
    url: '/wms/handover',
    method: 'post',
    data: data
  })
}

// 修改交接信息
export function updateHandover(data) {
  return request({
    url: '/wms/handover',
    method: 'put',
    data: data
  })
}

// 删除交接信息
export function delHandover(id) {
  return request({
    url: '/wms/handover/' + id,
    method: 'delete'
  })
}
